package io.gitee.zicai.service.consumer.feign

import org.springframework.cloud.openfeign.FeignClient
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable

/**
 * HelloFeign
 * @author zicai
 * @since 2019-12-05
 */
@FeignClient(value = "\${dubbo.cloud.subscribed-services}", path = "/")
interface HelloFeign {

    @GetMapping("/hello/m/{msg}")
    fun hello(@PathVariable("msg") msg: String) : String

    @GetMapping("/hello/config")
    fun config() : String
}